﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="NewDefaultAdd.aspx.cs" Inherits="manager_task_NewDefaultAdd" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <title>发布任务</title>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder" runat="Server">
    <section class="content-header">
        <h1>任务相关
            <small>为<a style="color: red"><%=ttitle %></a>发布任务</small>
        </h1>
        <ol class="breadcrumb">
            <li><a><i class="fa fa-dashboard"></i>主页</a></li>
            <li><a href="userManager.aspx">任务相关</a></li>
            <li class="active">发布任务</li>
        </ol>
    </section>

    <section class="content">
        <div class="box box-primary">
            <div class="box-body">
                <table class="table table-bordered">
                    <tr>
                        <td class="col-sm-2">任务类型</td>
                        <td>
                            <asp:DropDownList ID="ddl_Type" CssClass="form-control" runat="server">
                                <asp:ListItem Value="1">月度任务</asp:ListItem>
                                <asp:ListItem Value="2">临时任务</asp:ListItem>
                            </asp:DropDownList>
                        </td>
                    </tr>
                    <tr>
                        <td class="col-sm-2">是否有参考值</td>
                        <td>
                            <asp:DropDownList ID="ddl_LX_sj" CssClass="form-control" runat="server">
                                <asp:ListItem Value="0">否</asp:ListItem>
                                <asp:ListItem Value="1">是</asp:ListItem>
                            </asp:DropDownList>
                        </td>
                    </tr>
                    <tr>
                        <td style="vertical-align: middle">参考值</td>
                        <td>
                            <input type="text" id="txt_Tdata" class="form-control" runat="server" value="0" /></td>
                    </tr>
                    <tr>
                        <td class="col-sm-2">是否为浮动评分任务</td>
                        <td>
                            <asp:DropDownList ID="ddl_LX_fd" CssClass="form-control" runat="server">
                                <asp:ListItem Value="0">只减不加</asp:ListItem>
                                <asp:ListItem Value="1">浮动加减</asp:ListItem>
                                <asp:ListItem Value="2">纯加分</asp:ListItem>
                                <asp:ListItem Value="3">浮动</asp:ListItem>
                            </asp:DropDownList>
                        </td>
                    </tr>
                    <tr>
                        <td class="col-sm-2">任务分类</td>
                        <td>
                            <asp:DropDownList ID="ddl_LX_TYPE" CssClass="form-control" runat="server">
                                <asp:ListItem Value="0">首要任务</asp:ListItem>
                                <asp:ListItem Value="1">基本工作要求</asp:ListItem>
                                <asp:ListItem Value="2">常态化工作</asp:ListItem>
                                <asp:ListItem Value="3">附加项</asp:ListItem>
                            </asp:DropDownList>
                        </td>
                    </tr>
                    <tr>
                        <td class="col-sm-2">分值</td>
                        <td>
                            <input type="text" id="txt_FZ" class="form-control" runat="server" value="0" /></td>

                    </tr>
                    <tr>
                        <td style="vertical-align: middle">任务标题</td>
                        <td>
                            <input type="text" id="txt_title" class="form-control" runat="server" /></td>
                    </tr>
                    <tr>
                        <td style="vertical-align: middle">任务描述</td>
                        <td>
                            <textarea class="form-control" style="height: 100px;" id="txt_detail" runat="server"></textarea>
                        </td>
                    </tr>

                    <tr>
                        <td style="vertical-align: middle">结束日期</td>
                        <td>
                            <input type="text" id="txt_rq_yjs" class="form-control" runat="server" />
                        </td>
                    </tr>
                    <tr>
                        <td style="vertical-align: middle">考核部门</td>
                        <td>
                            <a data-toggle="modal" data-target="#moduleManager_zrgw">
                                <input type="text" id="Bm_Kh_mc" class="form-control" runat="server" /></a>
                        </td>
                    </tr>
                    <tr>
                        <td style="vertical-align: middle">被考核部门</td>
                        <td>
                            <a data-toggle="modal" data-target="#moduleManager_bkhgw">
                                <input type="text" id="Bm_Bkh_mc" class="form-control" runat="server" /></a>
                        </td>
                    </tr>
                </table>

            </div>
            <div class="box-footer">
                <a href="NewDefault.aspx" class="btn btn-warning">取消</a>
                <asp:Button ID="Button1" runat="server" class="btn btn-primary pull-right" Text="保存" OnClick="Button1_Click" />
            </div>
        </div>

        <div class="modal fade" id="moduleManager_zrgw" role="dialog" aria-labelledby="moduleManagerLabel">
            <div class="modal-dialog" role="document" style="width: 1000px">
                <div class="modal-content">
                    <div class="modal-header">
                        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                        <h4 class="modal-title">选择责任岗位(单击名称选择)</h4>
                    </div>
                    <div class="modal-body">

                        <div class="tab-content">
                            <%=Html_Dept_Detail_bm_kh  %>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="modal fade" id="moduleManager_bkhgw" role="dialog" aria-labelledby="moduleManagerLabel">
            <div class="modal-dialog" role="document" style="width: 1000px">
                <div class="modal-content">
                    <div class="modal-header">
                        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                        <h4 class="modal-title">选择被考核岗位(单击名称选择)</h4>
                    </div>
                    <div class="modal-body">

                        <div class="tab-content">
                            <%=Html_Dept_Detail_bm_bkh  %>
                        </div>
                    </div>
                </div>
            </div>
        </div>


        <div style="display: none;">
            <input type="text" id="dept_id" runat="server" />
            <input type="text" id="Bm_Kh" runat="server" value="0" />
            <input type="text" id="Ry_Kh" runat="server" value="0" />
            <input type="text" id="Bm_Bkh" runat="server" value="0" />
            <input type="text" id="Ry_Bkh" runat="server" value="0" />
            <input type="text" id="Edit_Id" runat="server" value="0" />
        </div>
    </section>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ScriptPlaceHolder" runat="Server">
    <script src="/reference/plugins/moment/moment.min.js"></script>
    <script src="/reference/plugins/moment/moment-with-locales.min.js"></script>
    <script src="/reference/plugins/bootstrap-datetimepicker/js/bootstrap-datetimepicker.min.js"></script>
    <script>
        $('#ContentPlaceHolder_txt_rq_yjs').datetimepicker({
            locale: 'zh-cn',
            format: "YYYY-MM-DD"
        });
        $(document).ready(function () {
            $("#table_Bm_Kh").DataTable(
                           {
                               "columnDefs": [
                                   { "targets": [0], "visible": false }
                               ],
                               "autoWidth": true,
                               "ordering": false,
                               "scroll": true,
                               "language": {
                                   "url": "/reference/plugins/datatables/Chinese.json"
                               }
                           });
            $("#table_Bm_Bkh").DataTable(
                           {
                               "columnDefs": [
                                   { "targets": [0], "visible": false }
                               ],
                               "autoWidth": true,
                               "ordering": false,
                               "scroll": true,
                               "language": {
                                   "url": "/reference/plugins/datatables/Chinese.json"
                               }
                           });
        });

        function SetBm_Kh(id, mc) {
            $("#ContentPlaceHolder_Bm_Kh").val(id);
            $("#ContentPlaceHolder_Bm_Kh_mc").val(mc);
            $('#moduleManager_zrgw').modal('hide')
        }
        function SetBm_Bkh(id, mc) {
            $("#ContentPlaceHolder_Bm_Bkh").val(id);
            $("#ContentPlaceHolder_Bm_Bkh_mc").val(mc);
            $('#moduleManager_bkhgw').modal('hide')
        }

    </script>
</asp:Content>

